<template>
  <div v-html="alipayWap"
       ref="alipayWap">

  </div>
</template>

<script>
export default {
  name: 'Zhifu',
  data () {
    return {
      alipayWap: '',
    }
  },
  created () {
    this.$axios.post('http://localhost:8081/jj', this.$qs.stringify({
      price: localStorage.getItem('waitPay'),
      subject: '消费',
    })).then(res => {
      console.log(res.data);
      this.alipayWap = res.data;
      this.$nextTick(() => {
        this.$refs.alipayWap.children[0].submit();
      })
    }).catch(err => {
      console.log(err);
    })
  },

}
</script>

<style lang="less ">
/* 买家账号pikjbf8310@sandbox.com */
/* 密码111111 */
</style>


